import {request} from "@/utils/request";

export function userLogin(data){
    return request({
        url: '/login',
        method: 'post',
        data
    })
}

export function getUserInfo(id){
    return request({
        url: `/user/${id}`
    })
}

export function getUserMenus(id){
    return request({
        url: `/role/${id}/menu`
    })
}

export function activeRole(id){
    return request({
        url:`/role/${id}/active`,
        method: 'put'
    })
}

export function getSettings(){
    return request({
        url: '/settings'
    })
}